package org.idea.eaglemq.broker.utils;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @author: LunBoWang
 * @description:
 * @date: 2025/5/8 下午7:35
 * @version: 1.0
 */
public class UnfailReentrantLock implements PutMessageLock,AckMessageLock{

    private ReentrantLock reentrantLock = new ReentrantLock();


    @Override
    public void lock() {
        reentrantLock.lock();
    }

    @Override
    public void unlock() {
        reentrantLock.unlock();
    }
}
